package hee.model;

//영화예약하는 , 상품정보, 정보를 다룰땐 vo class로 만듬!!

public class SungJuk2VO {
	private String name;
	private int kor;
	private int eng;
	private int mat;
	
	private    int tot;
	private double avg;
	private   char grd;
	
	//() : 생성자
	public SungJuk2VO(String name, int kor, int eng, int mat) {
		
		//값을 초기화 하는 this (ctrl + 스페이스)
		this.name = name;
		this.kor  = kor;
		this.eng  = eng;
		this.mat  = mat;
	}
	
	
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}	
	
	public  int getKor() {return kor;}
	public void setKor(int kor) {this.kor = kor;}
	
	public  int getEng() {return eng;}
	public void setEng(int eng) {this.eng = eng;}
	
	public  int getMat() {return mat;}
	public void setMat(int mat) {this.mat = mat;}
	
	public  int getTot() {return tot;}
	public void setTot(int tot) {this.tot = tot;}
	
	public double getAvg() {return avg;}
	public void setAvg(double avg) {this.avg = avg;}
	
	public char getGrd() {return grd;}
	public void setGrd(char grd) {this.grd = grd;}
	
	@Override
	public String toString() {  //모든값 읽어 올때 toString으로
		String result = "";
		result += name + "/" + kor + "/" + eng + "/" + mat;
		
		return result +="/"+tot+"/"+avg+"/"+grd;
}
}